Skip to main content

Internal Web Server

Here is a complete list of Bluetooth commands and parameters for your GEOSNAKE device:

πŸ“‹ Bluetooth Commands for STATOTEST GEOSNAKE​

πŸ”§ WiFi Management​

wifi_on          - Turns on WiFi and restarts the device
wifi_off - Turns off WiFi

🌐 Network Address Settings​

set_address:XX   - Sets the Modbus address (1-255)
Example: set_address:5
get_address - Displays the current address

⚑ Communication Speed Settings​

set_baudrate:YYYY - Sets the RS485 communication speed
Supported: 9600, 19200, 38400, 57600, 115200
Example: set_baudrate:115200
get_baudrate - Displays the current baudrate

πŸ”„ System Management​

restart          - Restarts the device

πŸ“Š ADXL355 Measurement (accelerometer)​

measure_adxl     - Starts accelerometer measurement

🧲 MLX90393 Measurement (magnetometer)​

measure_mlx      - Starts magnetometer measurement

βš™οΈ ADXL355 Configuration​

set_adxl_points:N - Sets the number of samples (24-2048)
get_adxl_points - Displays the current number of samples

set_adxl_range:X - Sets the measurement range (1=Β±2g, 2=Β±4g, 3=Β±8g) (from FW>=6)
get_adxl_range - Displays the current range (from FW>=6)

set_adxl_odr:X - Sets the output data rate (0-10) (from FW>=6)
get_adxl_odr - Displays the current ODR (from FW>=6)

βš™οΈ MLX90393 Configuration​

CommandDescriptionRangeResponse
set_mlx_gain:XSet gain0-7"MLX gain set to X"
get_mlx_gainGet gain-"MLX gain: X"
set_mlx_osr:XSet oversampling0-3"MLX OSR set to X"
get_mlx_osrGet OSR-"MLX OSR: X"
set_mlx_filter:XSet filter0-7"MLX filter set to X"
get_mlx_filterGet filter-"MLX filter: X"
set_mlx_points:XMLX sample count1-1024"MLX points set to X"
get_mlx_pointsGet sample count-"MLX points: X"
show_mlx_settingsAll MLX settings-Complete MLX overview
measure_mlxStart MLX measurement-Starts measurement

HTTP Configuration​

CommandDescriptionResponse
http_onEnables HTTP data sending"HTTP data sending enabled"
http_offDisables HTTP sending"HTTP data sending disabled"
http_statusHTTP sending status"HTTP: ENABLED/DISABLED"
send_dataSends data to the server"Data sent" or error
test_internetTest connection"Internet connection: OK/FAILED"

πŸ”„ Settings Management (from FW>=6)​

reset_defaults   - Restores all settings to default values
show_settings - Displays current settings
clear_flash - Clears flash memory and restarts
factory_reset - Complete factory reset + restart

πŸ“ Usage Examples​

Basic device setup:​

get_address           β†’ "Address: 1"
set_address:10 β†’ "Address set OK"
get_baudrate β†’ "Baudrate: 19200"
set_baudrate:115200 β†’ "Baudrate set OK"

Measurement configuration:​

get_adxl_points       β†’ "ADXL355 points: 10"
set_adxl_points:500 β†’ "ADXL355 points set OK"
get_adxl_range β†’ "ADXL355 range: 0"
get_adxl_odr β†’ "ADXL355 ODR: 7"

Range settings:​

set_adxl_range:0  β†’ "ADXL355 range set to Β±2g (value: 0)"
set_adxl_range:1 β†’ "ADXL355 range set to Β±4g (value: 1)"
set_adxl_range:2 β†’ "ADXL355 range set to Β±8g (value: 2)"
set_adxl_range:5 β†’ "Invalid range (0=Β±2g, 1=Β±4g, 2=Β±8g)"

ODR settings:​

set_adxl_odr:0    β†’ "ADXL355 ODR set to 4000Hz (value: 0)"
set_adxl_odr:2 β†’ "ADXL355 ODR set to 1000Hz (value: 2)"
set_adxl_odr:7 β†’ "ADXL355 ODR set to 31.25Hz (value: 7)"
set_adxl_odr:15 β†’ "Invalid ODR (0-10, see documentation)"

Display settings:​

show_settings     β†’ "Current Settings:
Address: 1
Baudrate: 19200
WiFi: OFF
Bluetooth: ON
ADXL355 points: 500
ADXL355 range: Β±4g (1)
ADXL355 ODR: 1000Hz (2)
MLX90393 points: 100"

ODR Values Reference Table:​

ValueFrequencyDescription
04000HzHighest frequency
12000HzHigh frequency
21000HzDefault
3500HzMedium
4250HzMedium
5125HzLow
662.5HzVery low
731.25HzUltra low
815.625HzVery slow
97.813HzExtremely slow
103.906HzSlowest

Starting a measurement:​

measure_adxl          β†’ Starts measurement and returns:
"ADXL355:
Sample count: 500
Aggregation X: min=-0.123456g max=0.234567g avg=0.012345g
Aggregation Y: min=-0.098765g max=0.187654g avg=-0.003456g
Aggregation Z: min=0.876543g max=1.123456g avg=0.987654g
Temperature: 23.45Β°C
angle X: 1.23Β° Y: -0.45Β° Z: 12.34Β°"

measure_mlx β†’ Starts magnetometer measurement

WiFi Management:​

wifi_on              β†’ "WiFi enabled" + device restart
wifi_off β†’ "WiFi disabled"

System restart:​

restart              β†’ Immediate device restart

πŸ“± Connecting to the Device​

BLE device name: STATOTEST_GEOSNAKE-[address]

  • Example: STATOTEST_GEOSNAKE-1 (for address 1)
  • Example: STATOTEST_GEOSNAKE-10 (for address 10)

Security details:

  • PIN code: 123456
  • Encryption: Yes

πŸ” Return Values​

ADXL355 measurement contains:​

  • Sample count - how many values were measured
  • XYZ aggregation - minimum, maximum, average for each axis in g
  • Temperature - current sensor temperature in Β°C
  • Angles - angle X, Y, Z calculated from acceleration

Error messages:​

"Invalid address"     - Invalid address (outside range 1-255)
"Invalid baudrate" - Unsupported speed
"Invalid points" - Invalid sample count (outside 24-1024)
"Address set OK" - Address set successfully
"Baudrate set OK" - Speed set successfully
"ADXL355 points set OK" - Sample count set successfully

⚠️ Important Notes​

  1. The wifi_on command will restart the device
  2. Measurement may take several seconds depending on the number of samples
  3. Addresses 1-255 are valid for Modbus communication
  4. Setting changes are saved to flash memory and survive a restart
  5. Only one task can run at a time (ADXL355 or MLX90393)